//
//  MBUserAccount.h
//  wensheng-sijicaifu
//
//  Created by kakarot on 2017/6/2.
//  Copyright © 2017年 kakarot. All rights reserved.
//

#import <Foundation/Foundation.h>
@interface MBUserAccount : NSObject<NSCoding>
//融云token
@property (nonatomic, copy) NSString *rongCloudToken;
//token
@property (nonatomic, copy) NSString *token;
//nickname
@property (nonatomic, copy) NSString *nickName;
//age
@property (nonatomic, copy) NSString *age;
//出生日月年MM/dd/yyyy
@property (nonatomic, copy) NSString *birthday;
//性取向0未知、1男、2女
@property (nonatomic, copy) NSString *gender;
//性取向0未知、1男、2女
@property (nonatomic, copy) NSString *lookingFor;
//是否是新用户userFlag
@property (nonatomic, copy) NSString *userFlag;
//关于我
@property (nonatomic, copy) NSString *aboutMe;
//爱好
@property (nonatomic, strong) NSMutableArray *interests;
//接受
@property (nonatomic, strong) NSMutableArray *youAccept;

//want
@property (nonatomic, strong) NSMutableArray *userWant;

//上传的照片链接集合
@property (nonatomic, strong) NSMutableArray *images;

//第一张图片
@property (nonatomic, copy) NSString *avatarUrl;

//社交目的
@property (nonatomic, copy) NSString *socialConnections;

//是否完善了注册
@property (nonatomic, assign) BOOL isUserValid;

//topic
@property (nonatomic, copy) NSString *topic;

//chatUserId
@property (nonatomic, copy) NSString *chatUserId;

//voiceArr
@property (nonatomic, strong) NSMutableArray *voiceArr;

//客服的targetid
@property (nonatomic, copy) NSString *kefuTargetId;
//未读消息数
@property (nonatomic, assign) int unReadNum;

//cloth
@property (nonatomic, strong) NSMutableArray *clothArr;
//是否倒序
@property (nonatomic, assign) BOOL isLatest;

//账号会员信息字典 key账号标识符  value是否会员
@property (nonatomic, assign) BOOL isVip;
@property (nonatomic, copy) NSString *vipDateStr;
@property (nonatomic, assign) NSInteger fcNum;
@property (nonatomic, assign) NSInteger ppNum;
@property (nonatomic, assign) NSInteger pvNum;

//
@property (nonatomic, assign) NSInteger checkPPNum;
@property (nonatomic, assign) NSInteger checkPVNum;


//modelList下拉刷新的次数
@property (nonatomic, assign) int modelListRefreshNum;
//记录当前日期字符串
@property (nonatomic, copy) NSString *todayStr;


//isUserType
@property (nonatomic, assign) BOOL isUserType;
//app入口标识 -->
@property (nonatomic, assign) NSInteger isNewHome;


//存放掉单的数组 字典 receiptStr:回执信息 requestNum:重复请求次数 orderID:订单号 productID:商品id
@property (nonatomic, strong) NSMutableArray <NSMutableDictionary *>*receiptDataArr;

//私密相册guide引导
@property (nonatomic, assign) BOOL isShowGuide;

//fc引导
@property (nonatomic, assign) BOOL isShowFC;

//check版本 特有的数据存储和判断
@property (nonatomic, strong) NSMutableArray *ppBuyArr;
@property (nonatomic, strong) NSMutableArray *pvBuyArr;


//key "todayDate" "totalCount" "likeCount"
//@property (nonatomic, strong) NSMutableDictionary *homeLikeDict;
@property (nonatomic, assign) NSInteger likeNum;

- (void)setValue:(id)value forUndefinedKey:(NSString *)key;

+ (instancetype)accontWithDict:(NSDictionary *)dict;
- (instancetype)initWithDict:(NSDictionary *)dict;

/**
 *  存储账号信息
 *
 *  @param account 需要存储的账号
 */
+ (void)saveAccount:(MBUserAccount *)account;

/**
 *  返回存储的账号信息
 */
+ (MBUserAccount *)defaultAccount;

/**
 * 删档
 */
+ (BOOL)deleteDoc;

@end
